<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        li {
            list-style-type: none;
        }
        
        a {
            text-decoration: none;
            color: blueviolet;
        }
        
        body {
            background-color: #f0f1f1;
        }
        
        header {
            background-color: #323232;
        }
        
        header .top {
            width: 1090px;
            height: 31px;
            margin: auto;
        }
        
        header .top .toplist {
            width: 601px;
            /* margin-right: 20px; */
            float: left;
        }
        
        header .top .toplist li a {
            float: right;
            font-size: 14px;
            line-height: 31px;
            color: #666666;
            margin-left: 18px;
        }
        
        header .top .toplist li:hover a {
            background-color: #db3302;
            color: white;
        }
        
        header .top .topimg {
            height: 15px;
            float: right;
        }
        
        header .top .topimg img {
            margin-left: 11px;
            margin-top: 5px;
            float: left;
        }
        
        header .top .topimg span {
            color: #666666;
            float: left;
            margin-top: 5px;
        }
        
        header .top .topimg li {
            float: left;
            line-height: 5px;
        }
        
        article {
            background-color: rgba(0, 0, 0, 0.37);
            background-image: url(img-list/logo_01.jpg);
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }
        
        article .center {
            width: 1090px;
            height: 132px;
            margin: auto;
            position: relative;
        }
        
        article .center img {
            position: absolute;
            top: -31px;
            width: 125px;
            height: 79px;
        }
        
        article .bottom {
            width: 100%;
            height: 22px;
            background-color: rgba(0, 0, 0, 0.37);
        }
        
        article .bottom .bottom1 h4 {
            width: 1090px;
            height: 22px;
            margin: auto;
        }
        
        article .bottom .bottom1 h4 {
            font-size: 12px;
            color: #cfcfcf;
            line-height: 18px;
        }
        
        main {
            background-color: #f0f1f1;
        }
        
        main .centerlist {
            width: 1090px;
            /* height: 1180px; */
            margin: auto;
            overflow: hidden;
            margin-bottom: 25px;
        }
        
        main .centerlist .Wlist li a {
            width: 1090px;
            display: inline-block;
            /* height: 108px; */
            margin-top: 30px;
        }
        
        main .centerlist .Wlist li a .time {
            width: 67px;
            /* height: 108px; */
            float: left;
            display: block;
            position: relative;
            border-top: solid grey 1px;
            font-size: 8px;
            color: #8e8e8e;
            text-align: center;
        }
        
        main .centerlist .Wlist li a .time .small {
            margin-left: -39px;
        }
        
        main .centerlist .Wlist li a .time .b {
            text-align: center;
            color: #8e8e8e;
            font-size: 14px;
            margin-top: 25px;
            display: block;
        }
        
        main .centerlist .Wlist li a .img {
            margin-top: 22px;
            float: left;
            margin-left: 40px;
        }
        
        main .centerlist .Wlist li a .content {
            border-top: solid grey 1px;
            width: 729px;
            /* height: 108px; */
            float: right;
        }
        
        main .centerlist .Wlist li a .time .samll {
            position: absolute;
            left: 0px;
            top: 0px;
        }
        
        main .centerlist .Wlist li a .content .p {
            font-size: 20px;
            color: #db3302;
            font-weight: bolder;
            margin-top: 18px;
        }
        
        main .centerlist .Wlist li a .content .span {
            float: left;
            font-size: 13px;
        }
        
        main .centerlist .Wlist li a .content .span,
        main .centerlist .Wlist li a .content .main-list {
            margin-top: 13px;
            color: #676767;
        }
        
        main .centerlist .Wlist li a {
            float: left;
            font-size: 16px;
            margin-left: 20px;
            color: #a3a3a3;
        }
        
        main .centerlist .Wlist li a .content .h3 {
            width: 700px;
            float: left;
            font-size: 14px;
            color: #a3a3a3;
            margin-top: 20px;
            font-weight: normal;
            line-height: 25px;
        }
        
        main .centerlist #list {
            display: none;
        }
        
        footer {
            background-color: #323232;
        }
        
        footer .footer-con {
            width: 1090px;
            height: 71px;
            margin: auto;
        }
        
        footer .footer-con img {
            float: left;
            height: 71px;
        }
        
        footer .footer-con .footer-bottom {
            width: 921px;
            height: 71px;
            float: right;
        }
        
        footer .footer-con .footer-bottom .footer-list {
            margin-top: 25px;
            margin-left: 500px;
        }
        
        footer .footer-con .footer-bottom .footer-list li {
            float: left;
            margin-right: 20px;
            margin-bottom: 5px;
            font-size: 12px;
            color: #8e8e8e;
        }
        
        footer .footer-con .footer-bottom h1 {
            margin-left: 336px;
            font-size: 10px;
            font-weight: normal;
            color: #8e8e8e;
        }
        /* .fieldset {
            background-color: gainsboro;
        } */
        
        .fieldset .fieldset-con {
            width: 1190px;
            margin: auto;
            margin-top: 46px;
        }
        
        .fieldset .fieldset-con #list {
            width: 300px;
            height: 25px;
            margin: auto;
            margin-bottom: 39px;
        }
        
        .fieldset .fieldset-con #list li {
            width: 25px;
            height: 25px;
            float: left;
            background-color: white;
            text-align: center;
            cursor: pointer;
            color: #abacaa;
            margin-right: 20px;
        }
        
        .fieldset .fieldset-con #list li:hover {
            background-color: #dd4012;
            color: white;
        }
    </style>
</head>

<body>
    <header>
        <div class="top">
            <ul class="toplist">
                <li><a href="">解决方案</a> </li>
                <li><a href="">传悦服务</a></li>
                <li><a href="">传悦资源</a></li>
                <li><a href="http://10.35.164.168/day25/案例-列表.html">传悦案例</a></li>
                <li><a href="">需求提交</a></li>
                <li><a href="http://10.35.164.168/day25/首页.html">网站首页</a></li>
            </ul>
            <ul class="topimg">
                <img src="img-list/iphon_03.png" alt="" class="img">
                <span>0536-60854</span>
                <li><img src="img-list/love_03.jpg" alt=""></li>
                <li><img src="img-list/love_05.jpg" alt=""></li>
                <li><img src="img-list/love_07.jpg" alt=""></li>
                <li><img src="img-list/love_09.png" alt=""></li>
            </ul>
        </div>
    </header>
    <article>
        <div class="center"><img src="img-list/logo_02.jpg" alt=""> </div>
        <div class="bottom">
            <div class="bottom1">
                <h4>网站首页>传悦观点</h4>
            </div>
        </div>
    </article>
    <main>
        <div class="centerlist">
            <ul class="Wlist">
            </ul>
            <li id="list">
                <a href="">
                    <span class="time">
                        <img src=""alt=""class="small">
                        <b class="b">&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b> 
                    </span>
                    <img src="img-list/loimg_03.jpg" alt="" class="img">
                    <div class="content">
                        <p class="p"></p>
                        <span class="span"></span>
                        <ul class="main-list">
                            <li class="li"></li>
                            <li class="li"></li>
                            <li class="li"></li>
                            <li class="li"></li>
                        </ul>
                        <h3 class="h3">
                        </h3>
                    </div>
                </a>
            </li>
        </div>
    </main>
    <div class="fieldset">
        <div class="fieldset-con">
            <ul id="list">
                <li>
                    &lt;
                </li>
                <li>1</li>
                <li>2</li>
                <li>3</li>
                <li>4</li>
                <li>
                    &gt;
                </li>
            </ul>
        </div>
    </div>
    <footer>
        <div class="footer-con">
            <img src="img-list/bottom_logo.png" alt="">
            <div class="footer-bottom">
                <ul class="footer-list">
                    <li>关于传悦</li>
                    <li>新闻动态</li>
                    <li>穿越观点</li>
                    <li>联系传悦</li>
                    <li>加入传悦</li>
                    <li>付款账户</li>
                </ul>
                <h1>copyright&nbsp; @2013&nbsp;&nbsp;创梦网络科技有限责任公司&nbsp;||&nbsp;传悦chnyoo.cn All right Resverd 京ICP备12005221号</h1>
            </div>

        </div>
    </footer>

</body>

</html>
<script>
    let Wlist = document.querySelector(".Wlist");
    let http = new XMLHttpRequest();
    http.open("get", "http://10.35.164.168:81/jiejuelist");
    http.send();
    http.onreadystatechange = function() {
        if (http.readyState === 4) {
            let Slist = JSON.parse(http.responseText);
            console.log(Slist)
            Slist.forEach(function(item) {
                let list = document.querySelector("#list");
                let newlist = list.cloneNode(true);
                Wlist.appendChild(newlist);
                newlist.id = "";
                newlist.querySelector(".small").src = item.small;
                newlist.querySelector(".b").innerHTML = item.b;
                newlist.querySelector(".img").src = item.img;
                newlist.querySelector(".p").innerHTML = item.p;
                newlist.querySelector(".span").innerHTML = item.span;
                newlist.querySelector(".main-list").innerHTML = item.mainlist;
                newlist.querySelector(".h3").innerHTML = item.h3;
                newlist.setAttribute("data-id", item.id);
                newlist.querySelector("a").href = `解决方案详情.html?id=${item.id}`;
            });

        }
    }
</script>